﻿<script type="text/ecmascript" src="_layouts/Tsol.SandboxWebservicePage/SandboxWebservice.js" ></script>
<script type="text/javascript">

    function callSandboxWebservice() {

        var webserviceUrl = "http://<yoururl>/SBWP/sbwpSample.aspx";
        var webserviceName = "SandboxWebserviceSamplePart";
        var sandboxWebservice = new SandboxWebservice.Net(webserviceUrl, webserviceName);
        sandboxWebservice.ExecuteQuery("notused",
                                function (response, userContext) {
                                    debugger;
                                    alert(response.Name + ", " + response.Address);
                                });
    }

    Sys.Application.add_load(callSandboxWebservice); 

</script>
